package com.youkeyi.ddy.cloud.common.api.basic.crm.supplier;

import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.dto.CrmSupplierListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.param.CrmSupplierCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.param.CrmSupplierDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.param.CrmSupplierQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.param.CrmSupplierUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * CrmSupplierCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/crm/supplier/fallback")
public class CrmSupplierCloudServiceFallback implements CrmSupplierCloudService {

    @Override
    public CrmSupplierListCloudDto query(CrmSupplierQueryCloudParam param) {
        return new CrmSupplierListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(CrmSupplierCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(CrmSupplierUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(CrmSupplierDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
